package Day15.ZiLian;


/**
 * @author HYHwtx
 * @version 1.0
 * @date 2022/2/22 15:22
 */
public class Teachers {
    private String name1;//姓名
    private  int age1;//年龄
    private String program;//教授科目

    public Teachers(String name1, int age1, String program) {
        this.name1 = name1;
        this.age1 = age1;
        this.program = program;
    }

    public Teachers() {

    }

    public String getName1() {
        return name1;
    }

    public void setName1(String name1) {
        this.name1 = name1;
    }

    public int getAge1() {
        return age1;
    }

    public void setAge1(int age1) {
        this.age1 = age1;
    }

    public String getProgram() {
        return program;
    }

    public void setProgram(String program) {
        this.program = program;
    }
    public String showInfo1(){
        return "老师姓名："+ name1 +"，年龄是："+ age1 +"，所授科目为："+program;

    }
}
